package cn.tedu.csmall.product.repo;

import cn.tedu.csmall.product.pojo.vo.BrandListItemVO;
import cn.tedu.csmall.product.pojo.vo.BrandStandardVO;

import java.util.List;

public interface IBrandRedisRepository {

    String BRAND_ITEM_KEY_PREFIX = "brand:item:";

    String BRAND_ITEM_KEY = "brand:list:";

    String BRAND_ITEM_KEYS_KEY = "brand:keys";

    void save(BrandStandardVO brandStandardVO);

    void saveList(List<BrandListItemVO> brands);

    Long deleteAll();

    BrandStandardVO get(Long id);

    List<BrandListItemVO> getList();

    List<BrandListItemVO> getList(Long start, Long end);
}
